
@call "%~dp0..\..\..\settings.cmd"

echo.
echo.
echo Make Win32 Trial
echo -------------------------
echo.

echo   Cleanup product folder...
call "%BUILDDIR%\cleanup.cmd"

echo   Build driver DLL...
call "%BUILDDIR%\build_win_trial.cmd"

echo   Update installation version info...
call "%~dp0.\update_version_info.cmd" > "%~dp0..\..\.make.log"
if errorlevel 1 goto error

echo   Make installation...
set ReleaseType=Trial
set SetupFileName=dbexpinfpro_%ProductVersionHigh%.%ProductVersionMinor%.%ProductVersionInternal%.%ProductVersionBuild%_d6-d7-d8-d2005-d2006-c6_trial
%INNOSETUP% "%~dp0.\dbexpinfpro_install.iss" > "%~dp0..\..\.make.log"
if errorlevel 1 goto error

:done
del /q "%~dp0.\dbexpinfpro_install.iss"
del /q "%~dp0..\..\.make.log"
echo.
echo -------------------------
echo Make done.
goto exit

:error
type "%~dp0..\..\.make.log"
pause

:exit
